package com.demo.装饰器;

import org.junit.Test;

/**
 * @ClassName TestBase
 * @Author bsy
 * @Description TODO
 * @Date 2023/1/15 22:05
 * @Version 1.0
 */
public class TestBase {

    @Test
    public void test_LoginSsoDecorator() {
        LoginSsoDecorator ssoDecorator = new LoginSsoDecorator();
        String request = "1successhuahua";
        boolean success = ssoDecorator.preHandle(request, "ewcdqwt40liuiu",
                "t");
        System.out.println("登录校验：" + request + (success ? " 放⾏" : " 拦截"));
    }
}
